﻿using System;
using System.Collections.Generic;

namespace Rj.PersonnelVerification.Server.DataBaseContext.Entities
{
    /// <summary>
    /// 检验报告主表
    /// </summary>
    public partial class ReportTestInfo
    {
        /// <summary>
        /// 主键;主键
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 患者ID;患者ID
        /// </summary>
        public string PatientId { get; set; } = null!;
        /// <summary>
        /// 患者类型;患者类型：01 门诊 02 住院 03 急诊 04 体检
        /// </summary>
        public string PatientType { get; set; } = null!;
        /// <summary>
        /// 就诊流水号;门诊挂号流水、住院流水号
        /// </summary>
        public string VisitNo { get; set; } = null!;
        /// <summary>
        /// 患者姓名;患者姓名
        /// </summary>
        public string PatName { get; set; } = null!;
        /// <summary>
        /// 住院号(门诊号);住院号(门诊号)
        /// </summary>
        public string HospNo { get; set; } = null!;
        /// <summary>
        /// 卡号;卡号
        /// </summary>
        public string? CardNo { get; set; }
        /// <summary>
        /// 床号;床号
        /// </summary>
        public string? BedNo { get; set; }
        /// <summary>
        /// 医院名称;医院名称
        /// </summary>
        public string? HospitalName { get; set; }
        /// <summary>
        /// 院区ID;医院ID
        /// </summary>
        public int HospitalId { get; set; }
        /// <summary>
        /// 报告编号;报告编号
        /// </summary>
        public string ReportNo { get; set; } = null!;
        /// <summary>
        /// 样本类型;样本类型
        /// </summary>
        public string? SpeimenType { get; set; }
        /// <summary>
        /// 样本名称;报告名称
        /// </summary>
        public string? SpeimenTypeName { get; set; }
        /// <summary>
        /// 是否微生物;是否微生物(0否，1是)
        /// </summary>
        public int? IsMicrobes { get; set; }
        /// <summary>
        /// 申请单Id
        /// </summary>
        public string? ApplyId { get; set; }
        /// <summary>
        /// 申请科室;申请科室
        /// </summary>
        public string? ApplyDept { get; set; }
        /// <summary>
        /// 申请科室名称;申请科室名称
        /// </summary>
        public string? ApplyDeptName { get; set; }
        /// <summary>
        /// 申请病区;申请病区
        /// </summary>
        public string? ApplyWard { get; set; }
        /// <summary>
        /// 申请病区名称;申请病区名称
        /// </summary>
        public string? ApplyWardName { get; set; }
        /// <summary>
        /// 申请医生;申请医生ID
        /// </summary>
        public string? ApplyDoctor { get; set; }
        /// <summary>
        /// 申请医生名称;申请医生名称
        /// </summary>
        public string? ApplyDoctorName { get; set; }
        /// <summary>
        /// 申请时间;申请时间
        /// </summary>
        public DateTime ApplyTime { get; set; }
        /// <summary>
        /// 检验大项编码;检验编码
        /// </summary>
        public string? InspectionItem { get; set; }
        /// <summary>
        /// 检验大项;检验项目
        /// </summary>
        public string? InspectionItemName { get; set; }
        /// <summary>
        /// 检验设备;检验设备
        /// </summary>
        public string? InstrumentNo { get; set; }
        /// <summary>
        /// 采样时间;采样时间
        /// </summary>
        public DateTime? SpeimentSampleTime { get; set; }
        /// <summary>
        /// 送检时间;送检时间
        /// </summary>
        public DateTime? SpeimentReceiveTime { get; set; }
        /// <summary>
        /// 送检医生名称;送检医生名称
        /// </summary>
        public string? SpeimentReceiveDoctor { get; set; }
        /// <summary>
        /// 检验科室;检查科室
        /// </summary>
        public string? TestDept { get; set; }
        /// <summary>
        /// 检验科室名称;检查科室名称
        /// </summary>
        public string? TestDeptName { get; set; }
        /// <summary>
        /// 检验时间;检查时间
        /// </summary>
        public DateTime TestTime { get; set; }
        /// <summary>
        /// 检验医生;检查医生ID
        /// </summary>
        public string? TestDoctor { get; set; }
        /// <summary>
        /// 检查医生名称;检查医生名称
        /// </summary>
        public string? TestDoctorName { get; set; }
        /// <summary>
        /// 报告时间;报告时间
        /// </summary>
        public DateTime ReportTime { get; set; }
        /// <summary>
        /// 报告医生;报告医生
        /// </summary>
        public string? ReportDoctor { get; set; }
        /// <summary>
        /// 报告医生名称;报告医生名称
        /// </summary>
        public string? ReportDoctorName { get; set; }
        /// <summary>
        /// 报告审核时间;报告审核时间
        /// </summary>
        public DateTime? AuditorTime { get; set; }
        /// <summary>
        /// 报告审核医生;报告审核医生
        /// </summary>
        public string? AuditorDoctor { get; set; }
        /// <summary>
        /// 报告审核医生名称;报告审核医生名称
        /// </summary>
        public string? AuditorDoctorName { get; set; }
        /// <summary>
        /// 报告Url地址;报告Url地址
        /// </summary>
        public string? ReportUrl { get; set; }
        /// <summary>
        /// 诊断编码;诊断编码
        /// </summary>
        public string? DiagCode { get; set; }
        /// <summary>
        /// 诊断名称;诊断名称
        /// </summary>
        public string? DiagName { get; set; }
        /// <summary>
        /// 备注;备注
        /// </summary>
        public string? Remark { get; set; }
        /// <summary>
        /// 危急值标志;危机值标志
        /// </summary>
        public int? CriticalFlag { get; set; }
        /// <summary>
        /// 危急值内容;危机值内容
        /// </summary>
        public string? CriricalContent { get; set; }
        /// <summary>
        /// 报告状态;报告状态(0 作废 1审核 )
        /// </summary>
        public int? ReportStatus { get; set; }
        public string? Canceller { get; set; }
        public DateTime? CancelTime { get; set; }
        /// <summary>
        /// 条码号
        /// </summary>
        public string? Barcode { get; set; }
        public string? CriricalFlag { get; set; }
        public DateTime? ReceiveTime { get; set; }
        /// <summary>
        /// 是否传染病(0否，1是)
        /// </summary>
        public string? Isinfection { get; set; }
    }
}
